package com.hk.core.security.cas;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "hk.cas")
public class CasProperties {

    private boolean sendRenew = false;

    private String clientUrl;

    /**
     * @see org.springframework.security.cas.web.CasAuthenticationFilter#setFilterProcessesUrl(String)
     */
    private String casAuthenticationProcessUrl = "/cas/login";

    private String casServerBaseUrl;

    private String casServerLoginSuffixUrl = "/login";

    private String casServerLogoutSuffixUrl = "/logout";

    public String getCasServerLoginUrl() {
        return this.casServerBaseUrl + this.casServerLoginSuffixUrl;
    }

    public String getCasServerLogoutUrl() {
        return this.casServerBaseUrl + this.casServerLogoutSuffixUrl;
    }

}
